﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MAT.Model;
using CrystalDecisions.CrystalReports.Engine;
using System.Windows.Forms;


namespace MAT.Controllers
{
    class ctrReportAssetLiquidation
    {
        private frmReportAssetLiquidation _frmReportAssetLiquidation = null;

        public frmReportAssetLiquidation FrmReportAssetLiquidation
        {
            get { return _frmReportAssetLiquidation; }
            set { _frmReportAssetLiquidation = value; }
        }
        MAT_Context context = MATContext.getContext();
        CommonClass ccl = new CommonClass();
        public void frmLiquidationReport_Load()
        {
            ReportDocument report = new ReportDocument();
            report.Load(Application.StartupPath + @"\..\..\Reports\crpReportAssetLiquidation.rpt");
            ccl.automationConnect(report);
            _frmReportAssetLiquidation.crystalReportViewer1.ReportSource = report;
            _frmReportAssetLiquidation.crystalReportViewer1.Refresh();
        }
    }
}
